package com.tim.dao;

import com.tim.pojo.House;

import java.sql.SQLException;
import java.util.List;

/**
 * 作者：Tim
 * 时间：2021/4/26 17:41
 */
public interface HouseDao {
    List<House> selectAll() throws SQLException;
    int deleteHouse(int houseID) throws SQLException;
    int addHouse(House house) throws SQLException;
    House selectOne(int houseID) throws SQLException;
    int updateHouse(House houses) throws SQLException;
    List<House> limit(Integer currentPage, Integer pageSize, String houseName) throws SQLException;
    int count(String houseName) throws SQLException;
}
